﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public class Program
    {
        /// <summary>
        /// Главная точка входа для приложения.
        /// </summary>
        /// 
        int STATIC_KOEFF = 5;

        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

        int getBPM(int[] array, int nowPosition, int interval)
        {
            int BPM;
            int summOfInterval = 0;
            for (int i = nowPosition - STATIC_KOEFF; i < nowPosition; i++)
            {
                if (i > 0)
                    summOfInterval += array[i];
                else
                    summOfInterval += interval;
            }
            BPM = (60000 / (summOfInterval / STATIC_KOEFF));
            return BPM;
        }
    }
}
